package dao.productDao;

import dao.BaseDao;
import dao.DaoException;
import model.Product;

import java.util.ArrayList;

public interface ProductDao extends BaseDao {
    boolean addProduct(Product product) throws DaoException;
    Product findById(int id) throws DaoException;
    ArrayList<Product> findProductsByType(String type) throws DaoException;
    ArrayList<Product> findProductsByPattern(String pattern) throws DaoException;
    boolean updateStockById(int id, int quantity) throws DaoException;
}
